﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Nova_BLL
{
    public class Role
    {
        Nova_DAL.Role Nova_DAL_Role = new Nova_DAL.Role();
        int i = 0;
        string ScaRole = "";


        ///<summary>
        ///返回记录集
        ///</summary>
        ///<param name="vGroupNo">vGroupNo</param>
        ///<returns>返回字符串</returnss>
        ///Writer：[王成友]
        ///Create Date： [2010-5-27]
        ///</summary>
        public string ScalarRole(string vGroupNo)
        {
            try
            {
                ScaRole = Nova_DAL_Role.ScalarRole(vGroupNo);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return ScaRole;
        }

        ///<summary>
        ///增加工作组编号对应的权限列表(菜单ID)
        ///</summary>
        ///<param name="vGroupNo">vGroupNo</param>
        ///<returns>0.失败，1.成功</returnss>
        ///Writer：[王成友]
        ///Create Date： [2010-5-27]
        ///</summary>
        public int AddRole(Nova_MOD.Role Role)
        {
            try
            {
                i = Nova_DAL_Role.AddRole(Role);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return i;
        }


        ///<summary>
        ///修改工作组编号对应的权限列表(菜单ID)
        ///</summary>
        ///<param name="vGroupNo">vGroupNo</param>
        ///<returns>0.失败，1.成功</returnss>
        ///Writer：[王成友]
        ///Create Date： [2010-5-27]
        ///</summary>
        public int UpdateRole(Nova_MOD.Role Role)
        {
            try
            {
                i = Nova_DAL_Role.UpdateRole(Role);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return i;
        }
    }
}
